package com.xiaoma.tpo.resource;

public enum ClassAchievement {

    COPPER(1,30),SILVER(2,40),GOLDEN(3,50);
    
    private int prize;
    private int point;
    
    private ClassAchievement(int prize, int point) {
        this.prize = prize;
        this.point = point;
    }
    
    public int getPrize() {
        return this.prize;
    }
    
    public int getPoint() {
        return this.point;
    }
    
    public static int prize2Point(int prize) {
        switch(prize) {
        case 1:
            return COPPER.getPoint();
        case 2:
            return SILVER.getPoint();
        case 3:
            return GOLDEN.getPoint();
        default:
            return 0;
        }
    }
}
